netsuite-js

SearchStringField

declaration
SearchStringField ->SearchStringField

var SearchStringField = module.exports = function SearchStringField() {
  BaseObject.call(this);

field

property
this.field

@member {String} Field name to search against, such as 'email' (see reference for your search type, such as EmployeeSearchBasic, for allowed values). Required.

this.field = '';

operator

property
this.operator

@member {String} See NetSuite reference in class definition for allowed values. Required.

this.operator = '';

searchValue

property
this.searchValue

@member {String} The actual search value. Required.

this.searchValue = '';
};

util.inherits(SearchStringField, BaseObject);

getAttributes

method
SearchStringField.prototype.getAttributes()

@override

SearchStringField.prototype.getAttributes = function() {
  if (!this.operator) {
    throw new Error('operator member not set');
  }

  var attrs = {
    operator: this.operator,
    'xsi:type': 'platformCore:SearchStringField'
  };

  return attrs;
};

getUnserializablePropertyNames

method
SearchStringField.prototype.getUnserializablePropertyNames()

@override

SearchStringField.prototype.getUnserializablePropertyNames = function() {
  return ['field', 'operator'];
};

getSOAPType

method
SearchStringField.prototype.getSOAPType()

@override

SearchStringField.prototype.getSOAPType = function() {
  if (!this.field) {
    throw new Error('field member not set');
  }

  return this.field;
};